<template>
  <!-- Vue3组件不在需要根标签 -->
  <p class="title">{{ count }}</p>
  <button @click="handleClick">按钮</button>
</template>

<script lang="ts">
export default {
  name: "App",
  data() {
    return {
      count: 0,
    };
  },
  methods: {
    handleClick() {
      this.count++;
    },
  },
};
</script>

<style scoped>
.title {
  color: yellowgreen;
}
</style>
